<?php
$this->pageTitle=Yii::app()->name . ' - Restore password';
$this->breadcrumbs=array(
	'Restore password',
);
?>

<h1>Restore password</h1>
<div class="cl compact">
<?php if(Yii::app()->user->hasFlash('forgot_error')): ?>
	<div class="errorMessage">
		<?php echo Yii::app()->user->getFlash('forgot_error'); ?>
	</div>
<?php else: ?>
	<?php if(Yii::app()->user->hasFlash('forgot')): ?>
		<div class="flash-success">
			<?php echo Yii::app()->user->getFlash('forgot'); ?>
		</div>
	<?php else: ?>
	<?php if(Yii::app()->user->hasFlash('forgot_messange')): ?>
		<div class="errorMessage">
			<?php echo Yii::app()->user->getFlash('forgot_messange'); ?>
		</div>
	<?php endif; ?>
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'login-form',
			'enableAjaxValidation'=>true,
		)); ?>
			<div class="row cl">
				<?php echo $form->labelEx($model,'email'); ?>
				<div class="inp_text">
					<?php echo $form->textField($model,'email'); ?>
				</div>
				<?php echo $form->error($model,'email'); ?>
			</div>
			<div class="row cl">
				<?php echo CHtml::submitButton('Send', array('class'=>'btn blue br3 fl')); ?>
			</div>
		<?php $this->endWidget(); ?>
	<?php endif; ?>
<?php endif; ?>
</div>